import qs from 'qs';
import { AxiosRequestConfig } from 'axios';

const defaultConfig: AxiosRequestConfig = {
  baseURL: import.meta.env.VITE_API_BASE_URL as string,
  withCredentials: true,
  responseType: 'json',
  paramsSerializer: params => {
    return qs.stringify(params, { arrayFormat: 'repeat' });
  },
};

export default defaultConfig;
